package com.elasticsearch.wenzi.elastic.enums;

/**
 * Created by zhaozuowen
 */
public enum ResultEnum implements ResponseCodeEnum {
    SUCCESS(200, "执行成功!"),
    ERROR(-500,"系统繁忙"),
    ERROR_ARGUMENT(-100000,"参数异常"),
    TOKEN_INVALID_ERROR(-100001, "本次登录已失效，请重新登录"),
    ACCESS_TIMEOUT_ERROR(-100002, "访问超时"),
    VISIT_TOO_OFTEN_ERROR(-100003, "访问过于频繁，请稍后再试"),
    HEADER_INFO_ERROR(-100004,"头部信息不完整"),
    REQUEST_ID_VALIDATE_ERROR(-100005,"requestId验证不通过"),
    REPEAT_REQUEST_VALIDATE_ERROR(-100006,"请勿重复请求"),
    ACCESS_TOKEN_VALIDATE_ERROR(-100007,"accessToken验证失败"),
    CLIENT_SIGN_VALIDATE_ERROR(-100008,"客户端签名验证失败"),
    DISABLE_IMEI_VALIDATE_ERROR(-100009,"您的设备已被禁用，请联系客服"),
    USER_ID_ERROR(-100010,"头部获取用户信息异常"),
    USER_VALIDATE_ERROR(-100011,"头部获取用户信息异常"),
    USER_INVALIDATE_OPER(-100012,"用户非法操作"),
    SENSITIVE_WORD_ERROR(-100013,"您输入的信息过于敏感,请重新输入"),
    TIMER_JOB_REPEAT(-100014, "timerjob名称重复"),
    CURRENT_PAGE_ERROR(-100015,"当前页参数错误"),
    NOT_EXIST_RECORDS_ERROR(-100016,"要操作的记录不存在"),
    START_END_TIME_ERROR(-100017,"开始时间,结束时间必需填写"),
    SYSTEM_ERROR(-100018,"系统繁忙,请稍后再试"),
    ERROR_OPENSDKTYPE(-100019,"系统繁忙，非法开播类型"),
    ERROR_SYSTEM_MAINTENANCE(-100020,"该功能暂不可用，敬请谅解"),
    BARRAGE_NOT_PRIVILEGE(-100021,"伯爵及以上贵族可使用全站喇叭"),
    ONLY_ANCHOR_ITEM(-100022,"此装扮只针对主播身份可见"),
	;
    
    private final int code;
    private final String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
